<!--  -->
<template>
  <div class='seller'>
    <div class="sellContent">
      <div class="overview">
        <h1 class='title'>{{seller.name}}</h1>
        <div class="desc">
          <star :size='36'
                :score='seller.score'></star>
          <span class="text">({{seller.ratingCount}})</span>
          <span class="text">月售{{seller.sellCount}}份</span>
        </div>

        <ul class='remark'>
          <li class='block'>
            <h2>起送价</h2>
            <div class="content">
              <span class='info'>{{seller.minPrice}}</span>元
            </div>
          </li>
          <li class='block'>
            <h2>商家配送</h2>
            <div class="content">
              <span class='info'>{{seller.deliveryPrice}}</span>元
            </div>
          </li>
          <li class='block'>
            <h2>配送时间</h2>
            <div class="content">
              <span class='info'>{{seller.deliveryTime}}</span>分钟
            </div>
          </li>
        </ul>
      </div>
      <split></split>
      <div class="bulletin">
        <h1>公告与活动</h1>
        <div class="wrapper">
          <p class='text'>{{seller.bulletin}}</p>
        </div>
      </div>
      <split></split>
      <div class="bulletin">
        <h1>备注信息</h1>
        <ul class="wrapper">
          <li v-for='(item,index) in seller.infos'
              :key='index'
              class='text'>{{item}}</li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script type='text/ecmascript-6'>
import star from '../star/star'
import split from '../split/split'
export default {
  props: {
    seller: {
      type: Object
    }
  },
  data () {
    return {
    }
  },
  components: {
    star,
    split
  }
}

</script>
<style lang='stylus' scoped>
.seller
  position fixed
  top 174px
  left 0
  bottom 58px
  width 100%
  background #fff
  .bulletin
    padding 18px
    h1
      margin-bottom 6px
    .text
      font-size 14px
      color rgb(7, 17, 27)
      line-height 18px
  .overview
    padding 18px
    .title
      margin-bottom 8px
      line-height 14px
      color rgb(7, 17, 27)
      font-size 14px
      font-weight 700
    .desc
      line-height 18px
      .star
        display inline-block
        vertical-align top
      .text
        margin-eight 12px
        color rgb(77, 85, 93)
    .remark
      display flex
      margin-top 18px
      .block
        flex 1
        text-align center
        color rgb(7, 17, 27)
        h2
          font-size 10px
          color rgb(77, 85, 93)
        .content
          font-size 10px
          margin-top 6px
          .info
            font-size 24px
</style>
